package com.bwie.service;

import com.bwie.pojo.TbProd;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bwie.utils.R;
import com.bwie.vo.PageInfoVo;
import com.bwie.vo.TbProdVo;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
* @author Lenovo
* @description 针对表【tb_prod(商品表)】的数据库操作Service
* @createDate 2025-03-25 18:37:54
*/
public interface TbProdService extends IService<TbProd> {

    R getProdList(PageInfoVo pageInfoVo);

    R getDictList(Integer id);

    R getProdListFromEs(PageInfoVo pageInfoVo);

    R addProd(TbProd tbProd);

    R updateProd(TbProd tbProd);

    R deleteProd(Integer prodId);

    R applyProdOnline(Integer prodId);

    R sucProdStock(List<TbProdVo> prodList);

    void exportProdExcel();

    void exportProdMore(String ids);

    R importProdExcel(MultipartFile file);
}
